package com.huang.eduservice.client;

import com.hunag.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "service-vod", fallback = VodClientImpl.class) //声明熔断实现类
@Component
public interface VodClient {

    @DeleteMapping("/eduvod/video/removeAliyunVideo/{id}")
    public R removeAliyunVideo(@PathVariable("id") String id);

    @DeleteMapping("/eduvod/video/deleteVedioList")
    public R deleteVedioList(@RequestParam("videoList") List<String> videoId);
}
